Milwaukee got off to a fast start, but Pittsburgh managed to put together a quick response.
Ramirez hit a two-run homer off Wandy Rodriguez in the first, then doubled and scored in the third.
McCutchen's drive off Mike Fiers in the bottom half trimmed Milwaukee's lead to 4-3. Pinch-hitter Alex Presley then tied the game with a run-scoring fielder's choice in the fourth.
Rodriguez allowed four runs and five hits in four innings. The left-hander was 3-0 with a 1.40 ERA in his previous four starts.
Fiers gave up three runs and five hits in three innings. The rookie is 3-4 with a 6.75 ERA in his last eight starts after going 6-4 with a 1.82 ERA in his first 12.
NOTES: Brewers 1B Corey Hart played for the first time in 10 days: He had been sidelined by a torn plantar fascia in his left foot. He went 1 for 3 and was pulled after five innings to rest. ... Pirates 2B Neil Walker returned to the lineup after sitting out two of the previous three games with lower back soreness. ... Milwaukee opens a four-game series at Washington on Friday night while Pittsburgh begins a three-game series at Houston. RHP Shaun Marcum (5-4, 3.91 ERA) will pitch for the Brewers against Nationals RHP Edwin Jackson (9-10, 3.89 ERA). Pirates LHP Jeff Locke (0-1, 5.49 ERA) will look for his first major league win when he faces Astros RHP Edgar Gonzalez (2-1, 4.40 ERA).