When writing all but the most trivial bug fixes I always put in a comment referring to the bug report number. This helps with what can otherwise be a perplexing problem: "why is this bit of code there?"
Good and copius comments were especially important in the days of handwritten assembly code.
-Paul W.