Kyle MacLachlan guest stars on the 11/8/10 episode of How I Met Your Mother. His character shakes Ted's hand here.
Added:

How I Met Your Mother Season 6 Episode 8 Quotes

I didn't realize you were small potatoes, and to be clear I am referring to your testicles.

Robin

So, naturally I snapped the rip off of a triceratops, bloppidy bloppidy blue, I knocked down the whale.

Barney