if only two single edges, then this is a parity case, where you use a parity algorithm for it...
but first, what method you will use for 4x4 BLD edges? is it r2? if so, then 2 diagonal edges (not on the same layer like you said) must be swapped, the one to use is to swap DF and UB
but you can swap UF and UB by placing the UB edge next to the UF edge, then preform the parity algorithm (the one for normal speedsolving) then undo the moves to get the edge back to UB
l2 B2 l2 (parity algorithm with only moving inner slice for R and L NOT OUTTER) l2 B2 l2
l2 = only inner L slice NOT OUTTER
so , if it was me, i'd use this parity algorithm
l2 B2 l2 (r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2) l2 B2 l2
hope this helps