You'll have to do some digging in the Rails source, but you can monkey patch something into the render method.
--Greg