YAQL/JINJA rendering logging

Is there a way to log or enable debug output for YAQL/JINJA expressions within workflows? There should be a way to see the rendering output/logs for YAQL and JINJA.
If so, it would be a fine addition to the documentation.

In my example, i want to debug the following YAQL within a worklow:

some_variable:  <% regex("a_matching_regex").matches($.other_variable) => st2kv(keyvalue, decrypt=>true) %>