Any reason for using string interpolation over:

```ruby
[separator, str.chomp, separator].join('\n')
```