(doc) Fix variable name typo in custom function ruby exmple

There's no other reference to 'vals' and 'args' seems appropriate
so this was likely a typo.