ProjectEuler 2 Ruby

a,b = 1,1
sum = 0
while b<=4000000
  sum += b if b%2==0
  a,b = b,a+b
end
p sum