Get most recent SQL executed from inside script\console?

One trick I like to do is tail the log in the background, then launch console.

$ tail -f log/development.log &
$ ./script/console

So the log's contents will still show up on stdout along with whatever you're doing in the console:

>> User.find(:first)
   User Load (0.000485) SELECT * FROM users LIMIT 1
=> #<User:0x23dcf2c...>