I always wished Exceptions captured variable values so I could log them and not have to reproduce a bug in order to see what happened. To that end, I made
https://github.com/ericbeland/exception_details. Perhaps Rails exception logging could include logging variable values at exception-time?