If you want to see what your mech is doing at all times, add this in your code:
require "logger"
mech = WWW::Mechanize.new ...
mech.log = Logger.new(STDOUT)
And this will print to STDOUT everything the mech is doing. Solution offered by Evgeny Shadchnev here.