 He has represented the "Ticos" at the 2005, 2011 and 2015 CONCACAF Gold Cups, captaining the team at the latter tournament.His first international goal came against Honduras in the 2005 tournament.Ruiz scored six times during the 2010 FIFA World Cup qualification campaign, as Costa Rica was knocked out by Uruguay in the intercontinental play-off.