That is pretty easy with a plain hash like
{:a => \"a\", :b => \"b\"}
which would translate into
\"a=a&b=b\" <
If you are in the context of a Faraday request, you can also just pass the params hash as the second argument and faraday takes care of making proper param URL part out of it:
faraday_instance.get(url, params_hsh)