The easiest thing would be becoming lucid and remembering.

"Incubation" is one technique for setting up dreams. A search on that should bring up some good reading.