launch rails server
rails s
and keep track of magazines.

Now try to access a page that points to the place where debuggerit is written in the code. The log will stop at the point where you put the word debugger/ byebug.
You can print the variables at this moment
upgrade for rails 4
.
-debug. , byebug Rails 4. "byebug" byebug