How to insert a string content into varbinary column in rails

There is a varbinary column in database table,in sql statement,we can use ' convert(varbinary(10),'hello') ' to convert string to varbinary ,but in rails,how can I do that or there is a another way to insert a string content into varbinary column.