RSpec: How to Stub Only One of Multiple Calls to Same Method

I'm having trouble figuring out how to stub only one of two calls to a method. Here's an example: class Example def self.foo { a: YAML.load_file('a.txt'), # don't stub - let it load b: