It's possible. You just have to use ctes:
with arg_to_bar as (from baz()),
arg_to_foo as (from bar()),
from foo()
Where `arg_to_bar` is a table name used internally in `bar`.