This is just an excellent question for today, so I did some research. Enjoy!
1) The word macaroni also meant "dandy", or "fop", or "dude" at the time.
Here is an in-depth explanation of "Yankee Doodle" and it's history, better explained than I can sum up in this thread.
Thanks Caipirabob