mockLogging Foo, true
Now, all the debug messages in you class Foo will be generated.
The other thing which can be a pain, is enabling debug in general, and Hibernate debugging in particular. Well, not this time, since you have to only add the following to your Config.groovy file:
Yes, Grails is that easy!