This post shows _a_ way to print an environment variable from a Yocto task. I list it as _a_ way since I'm just learning Yocto and haven't come across a better way to do this.
Given this Yocto snippet in a recipe (a *.bb file):
You can use the following to see what DL_DIR, P and WORKDIR are:
Yocto logo from link.