Ruiz drives in go-ahead run as Phils beat Marlins