 In the 2014 qualifiers, he scored three goals to lead the team to the tournament finals in Brazil.In June 2014, Ruiz was named in Costa Rica's squad for the 2014 FIFA World Cup.In the team's opening match, he captained "Los Ticos" to a 3–1 defeat of Uruguay in Fortaleza.