Show all variables available in a template?

Is there a way to see a dump of of every variable available to a template? This would help a lot with debugging.

You can template stuff out like this:

{{ hostvars["hostname"] || to_yaml }}