Arduino IDE comes preloaded with some basic codes. If you want to have it play music, go to file, examples, digital, and select toneMelody to open up the basic tone code.
Example Code
You can play around with the pause between notes and the note duration to change the pace of the song. You can also change which notes play in the melody line to change what it sounds like.