def foo(a,b,c=d=1)
p [a,b,c,d]
end
foo(1,2)
foo(1,2,3)