Carter Bays revealed via Twitter that Lin-Manuel Miranda will be guest starring by tweeting "Here's another bit of #HIMYM casting propaganda: A guest appearance by our good friend @Lin_Manuel Miranda!".
It's still unclear on just who he will play.. (possibly another wedding guest?).
Source: Carter Bays Twitter