Let's assume an OP wishes to juxtapose the validity of, or difference between two commands in the question title. Both commands do quote a string, like
puts "foo" and
p "foo". To improve legibility, it seems reasonable to separate the actual commands from the question with extra quotation marks.
Obviously, this title is not a good idea:
Fastest way to print: Should I use "puts "foo"" or "put "foo""? becomes
Fastest way to print: Should I use “puts “foo”” or “put “foo””? after conversion.
Typographic convention for quoting strings containing double quotes is to use single quotes, which then again are converted to typographically correct equivalents by SE.
Fastest way to print: Should I use 'puts "foo"' or '"put "foo"'? becomes
Fastest way to print: Should I use ‘puts “foo”’ or ‘“put "foo”’? after conversion.
I have also seen people using the grave accent ("backtick") for the outer quotation mark:
A typographic abomination, it may be defendable from a computer science-only standpoint.
For Stack Exchange, is there one correct way to "double quote" mentioned above, or is there one or more incorrect way/s?