The following tag can be used in any invoice template to display debug information, including all key value pairs available to the template:

{% debug %}