I'd use string interpolation for all these lines, ie:

    "Sensu version: #{result['sensu']['version']}"

You could also consider using a heredoc, ie multiline string with `"""`