There's another way to do this, which is the block form of receive: https://relishapp.com/rspec/rspec-mocks/v/3-2/docs/configuring-responses/block-implementation#use-a-block-to-verify-arguments
expect(Foo).to receive(:bar) do |args|
expect(args[0]).to eq(:baz)
end