How can we trace the execution flow in Rails
===

I am trying to learn Ruby on rails. While it is a very powerful framework as it does give you a host of functionality in the form of a well defined and well routed framework, it also means that a lot is happening automagically and under the hood. This sometimes makes things hard to debug. Is there a way by which I can trace through the flow of control as it moves across different views, controllers,models, etc and if needed inspect the value of variables on the way. That would be great to debug issues as well as understand the working of the Rails framework better. Thanks

I am using rails version 3.2 and ruby version 1.9.2