Scherzer gave up two runs in the first inning, including a David Ortiz solo shot, but kept the Red Sox scoreless thereafter, scattering six hits and fanning six.
Martinez launched a slam in the first off Sox prospect Allen Webster as part of a five-run night, while Omar Infante also went yard.
Zack Greinke hurled eight innings of one-run ball to lift the Los Angeles Dodgers to a 6-1 win over the San Diego Padres.
Greinke allowed four hits and a walk, punching out eight, and received offensive backing in the form of home runs from Adrian Gonzalez and Hanley Ramirez.
Homers from Maicer Izturis and Jose Bautista lifted the Toronto Blue Jays to their 10th straight win, 4-2 over the Baltimore Orioles.
The sides were tied at 2-2 after Taylor Teagarden's solo shot in the top of the eighth, before Bautista connected in the bottom half of the inning.
Jason Kubel knocked in a pair in the bottom of the ninth to give the Arizona Diamondbacks a 4-3 win over the Cincinnati Reds.
Jay Bruce belted his second homer of the night in the top of the ninth to put Cincinnati 3-2 up, but Kubel singled off Aroldis Chapman to win the game for the D'backs.
Vernon Wells launched a bases-clearing double in the seventh to give the New York Yankees a 7-4 win over Tampa Bay and take the shine off Rays prospect Wil Myers first Major League home run - a grand slam in the sixth.
Myers' slam put the Rays 5-3 ahead but the Yankees bounced back thanks to pinch-hitter Wells. Rookie Zoilo Almonte also drove in three.
Jhoulys Chacin tossed seven shutout frames to help the Colorado Rockies end their five-game losing streak with a 7-1 win over the Washington Nationals.
Hector Sanchez drove in the winning run in the 11th inning as the San Francisco Giants walked off in the 11th with a 2-1 victory over the Miami Marlins.
Pinch-hitter Kevin Frandsen homered in the ninth to give Philadelphia an 8-7 walk-off win over the New York Mets after Phillies closer Jonathan Papelbon had blown his third save in a week.
Francisco Rodriguez locked down his 300th career save in the Milwaukee Brewers' 2-0 win over the Atlanta Braves.
Pedro Alvarez's 18th home run of the season was one of three Pittsburgh long balls in the Pirates' 6-1 win over the Los Angeles Angels.
Nelson Cruz launched a two-run homer to give the Texas Rangers a 4-2 victory over the St Louis Cardinals, while the Seattle Mariners rallied for a 7-5 victory over the Oakland Athletics.
The Houston Astros beat the Chicago Cubs 4-3, the Chicago White Sox edged out the Kansas City Royals 3-2 and the Cleveland Indians were 8-7 winners over the Minnesota Twins.