Ramirez drives in 2 as Brewers beat Cubs 7-5