Every good IDE provides a GUI for interactively debugging Ruby (and thus Rails) applications where you can add breakpoints, watches, auto pausing on exception and allows you to follow the code execution even step by step, line by line.
For example, take a look at one of the best Ruby IDE's, RubyMine's debugging features on the picture