You can try this (found on SO).
scenario_title = scenario.respond_to?(:scenario_outline) ? scenario.scenario_outline.title : ''
scenario_title_example = scenario.respond_to?(:name) ?
scenario.name : ''
scenario_full_title = scenario_title + scenario_title_example
If that does not work I can dig out some code I have from a prior project where I saved screenshots and other files on failing scenario's/examples using the scenario (outline) name + example and see if that is a better solution